//
//  CollisionManager.h
//  Void Dead
//
//  Created by Sidney Just on 04.07.09.
//  Copyright 2009 by Sidney Just
//  This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; 
//  either version 3 of the License, or (at your option) any later version.
//  
//  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 
//  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
//  
//

#import <Foundation/Foundation.h>
@class VD_Panel;
@class VD_Engine;
@class VD_TextureManager;

/**
 * This class allows simple collision detection for panels.
 * You don't need to create a instance of this class because it will be provided by every VD_Engine object
 * This class will be replaced by Box2D in one of the next updates!!!
 **/

@interface VD_CollisionManager : NSObject {
	@private
	VD_Engine *renderEngine;
	VD_TextureManager *texMan;
}

/**
 * Inits the collisionManager with the given Engine
 @param eng Pointer to the Engine thats handles this instance
 **/
- (id)initWithEngine:(VD_Engine *)eng;

/**
 * Checks if two panels are coliding
 * This check is based on circles
 @param pan1 the first panel
 @param pan2 the second panel
 @return Yes if the panels are colliding
 **/
- (BOOL)is2DCollisionBasedOnCircleBetween:(VD_Panel *)pan1 and:(VD_Panel *)pan2;

/**
 * Checks if two panels are coliding
 * Uses the real size of the panels
 @param pan1 the first panel
 @param pan2 the second panel
 @return Yes if the panels are colliding
 **/
- (BOOL)is2DCollisionBasedOnBoxBetween:(VD_Panel *)pan1 and:(VD_Panel *)pan2;

@end
